<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:include="common/common :: jscss">
    <title>预览</title>
    <style>
        .myText {
            max-width: 100px;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            display:block;
            float:left;
        }
    </style>
</head>
<body>


<div class="layui-fluid">

    <blockquote th:if="${flag==1 || flag==2}" class="layui-crumb">
        <zmn th:if="${flag==1}">
            标准规范>
            <a lay-href="/standard/record/list.action">管理标准规范列表</a>>
            <a th:text="${standardRecord.title}" th:href="|/standard/record/content.action?standardId=${standardRecord.standardId}|">title</a>>
            <zmn>运营后台文章详情</zmn>
        </zmn>

        <zmn th:if="${flag==2}">
            标准规范>
            <a lay-href="/standard/record/checkList.action">查看标准规范列表</a>>
            <zmn>[[${standardRecord.title}]]</zmn>>
            <zmn>运营后台文章详情</zmn>
        </zmn>

    </blockquote>

    <div class="layui-card">

        <div class="layui-card-body">
            <div style="text-align: center;margin-top: 30px">
                <div style="font-size: 20px; font-weight: bold;" th:text="|${standardRecord.title}${standardRecord.version}|"></div>
            </div>
            <div style="text-align: right">
                <div style="margin-top: 20px; margin-right: 10%" th:text="${#dates.format(standardRecord.createTime, 'yyyy-MM-dd HH:mm:ss')}"></div>
            </div>
            <div style="margin-top: 20px">
                <div style="margin-left: 10%; margin-right: 10%" th:utext="${standardRecord.content}"></div>
            </div>
            <div style="margin-top: 40px">
                <span style="margin-left: 10%">阅读量</span>
                <span style="margin-left: 20px" th:text="${standardRecord.readCount}">{{d.readCount}}</span>
                <span style="margin-left: 20px">
                    <a style="margin-left: 20px;flex: 1 1 auto;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" th:if="${standardRecord.fileSrc != null && standardRecord.fileSrc != ''}" th:text="${T(com.zmn.plat.business.impl.upload.UrlUtils).getUrlFileName(standardRecord.fileSrc)}" download>下载源文件</a>
                    <a th:if="${#authPermit.checkPermit('/standard/record/download.action') && (standardRecord.fileSrc != null && standardRecord.fileSrc != '')}" style="text-decoration:underline;color: #228B22" th:onclick="downLoadFile([[${standardRecord.fileSrc}]])">下载</a>
                    <a style="margin-left: 20px;flex: 1 1 auto;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" th:if="${standardRecord.fileSrc2 != null && standardRecord.fileSrc2 != ''}" th:text="${T(com.zmn.plat.business.impl.upload.UrlUtils).getUrlFileName(standardRecord.fileSrc2)}" download>下载源文件</a>
                    <a th:if="${#authPermit.checkPermit('/standard/record/download.action') && (standardRecord.fileSrc2 != null && standardRecord.fileSrc2 != '')}" style="text-decoration:underline;color: #228B22" th:onclick="downLoadFile([[${standardRecord.fileSrc2}]])">下载</a>
                    <a style="margin-left: 20px;flex: 1 1 auto;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" th:if="${standardRecord.fileSrc3 != null && standardRecord.fileSrc3 != ''}" th:text="${T(com.zmn.plat.business.impl.upload.UrlUtils).getUrlFileName(standardRecord.fileSrc3)}" download>下载源文件</a>
                    <a th:if="${#authPermit.checkPermit('/standard/record/download.action') && (standardRecord.fileSrc3 != null && standardRecord.fileSrc3 != '')}" style="text-decoration:underline;color: #228B22" th:onclick="downLoadFile([[${standardRecord.fileSrc3}]])">下载</a>
                    <a style="margin-left: 20px;flex: 1 1 auto;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" th:if="${standardRecord.fileSrc4 != null && standardRecord.fileSrc4 != ''}" th:text="${T(com.zmn.plat.business.impl.upload.UrlUtils).getUrlFileName(standardRecord.fileSrc4)}" download>下载源文件</a>
                    <a th:if="${#authPermit.checkPermit('/standard/record/download.action') && (standardRecord.fileSrc4 != null && standardRecord.fileSrc4 != '')}" style="text-decoration:underline;color: #228B22" th:onclick="downLoadFile([[${standardRecord.fileSrc4}]])">下载</a>
                    <a style="margin-left: 20px;flex: 1 1 auto;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;" th:if="${standardRecord.fileSrc5 != null && standardRecord.fileSrc5 != ''}" th:text="${T(com.zmn.plat.business.impl.upload.UrlUtils).getUrlFileName(standardRecord.fileSrc5)}" download>下载源文件</a>
                    <a th:if="${#authPermit.checkPermit('/standard/record/download.action') && (standardRecord.fileSrc5 != null && standardRecord.fileSrc5 != '')}" style="text-decoration:underline;color: #228B22" th:onclick="downLoadFile([[${standardRecord.fileSrc5}]])">下载</a>
                </span>
            </div>
        </div>
    </div>

</div>

<script type="text/javascript" th:inline="javascript">
    layui.config({
        version: 20200219,
        base: "/static/lay/"
    }).extend({
        index: "lib/index",
        standard_record_preview_js: "standard/record/zmn.plat.standard.record.preview"
    }).use(['index', 'standard_record_preview_js']);
</script>
</body>
</html>